##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 13\13.1579 - No Title.py
# Description: No Title
##############################################################################
def mouse_click(self, event):
if self.state == 0:
self.xi = event.x
self.yi = event.y
self.curr_id = self.tool((self.xi, self.yi, event.x, event.y),
fill=self.foreground_color, tags=["drawing"])
self.state = 1